<?php echo form_open_multipart();?>
<div class="holder">
    
    <div class="action">
        <?php echo form_submit('btnSave', 'Save', 'class="add"'); ?>
        <?php echo anchor('product/product/'.$method,'Cancel', 'class="button cancel"');?>
    </div>
    <div style="clear:both"></div>
</div>
<div class="holder">
     <?php 
		$name = array(
			'name' => 'name',
			'style' => 'width:200px;',
			'value' => set_value('name'),
			'class' => 'input-xlarge',
			'type' => 'text'
		);
		$broken_rate = array(
		  	'name' => 'broken_rate',
			'style' => 'width:200px;',
		  	'value' => set_value('broken_rate'),
		  	'class' => 'input-xlarge'
					  );
		$shipping = array(
			'name' => 'shipping',
			'style' => 'width:200px;',
			'value' => set_value('shipping'),
			'class' => 'input-xlarge',
			'type' => 'text'
					);
	
		$mini_order = array(
			'name' => 'mini_order',
			'style' => 'width:200px;',
			'value' => set_value('mini_order'),
			'class' => 'input-xlarge',
			'type' => 'text'
			);
		 $payment_term = array(
			'name' => 'payment_term',
			'style' => 'width:200px;',
			'value' => set_value('payment_term'),
			'class' => 'input-xlarge',
			'type' => 'text'
			);
		$fob_price = array(
			'name' => 'fob_price',
			'style' => 'width:200px;',
			'value' => set_value('fob_price'),
			'class' => 'input-xlarge',
			'type' => 'text'
			);

		$desc = array(
			'name' => 'description',
			'style' => 'width:200px;',
			'value' => set_value('description'),
			'class' => 'tinyMCE',
			'type' => 'text'
			);
		$image = array(
			'name' => 'image',
			'type' => 'upload',
			'required' => ''
		);
 
	?>

   <div class="control-group">
         
         <table width="100%" class="striped" cellpadding="0" cellspacing="0">
         <tr>
         	<td width="110"> <label class="control-label">Product Name </label></td>
            <td width="230"><?php echo form_input($name);?><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('name'); ?></span></td>
         </tr>
         <tr>
         	<td><label class="control-label">Broken Rate</label></td>
            <td><?php echo form_input($broken_rate);?><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('broken_rate'); ?></span></td>
         </tr>
         <tr>
         	<td><label class="control-label">Shipping </label></td>
            <td><?php echo form_input($shipping);?><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('shipping'); ?></span></td>
         </tr>
         <tr>
         	<td><label class="control-label">Mini Order</label></td>
            <td><?php echo form_input($mini_order);?><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('mini_order'); ?></span></td>
         </tr>
         <tr>
         	<td><label class="control-label">Payment Term</label></td>
            <td><?php echo form_input($payment_term);?><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('payment_term'); ?></span></td>
         </tr>
         <tr>
         	<td><label class="control-label">Fob Price </label></td>
            <td><?php echo form_input($fob_price);?><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('fob_price'); ?></span></td>
         </tr>
         <tr>
         	<td><label class="control-label">Upload photo </label></td>
            <td><?php  echo form_upload($image);?><span style="color: red;"> *</span></td>
            <td><span style="color: red;"><?php echo form_error('image'); ?></span></td>
         </tr>
         <tr>
         	<td colspan="3"><label class="control-label" >Description</label></td>
         </tr>
         <tr>
            <td colspan="3"><?php echo form_textarea($desc);?><span style="color: red;"><?php echo form_error('description'); ?></span></td>
         </tr>
         </table>
</div>
</div>
<?php echo form_close();?>